package com.yh.patterns.factory.abstract_factory.textAndButton;


public class Client {
    public static void main(String[] args) {
        WindowsFactory factory=new WindowsFactory();
        Button button = factory.createButton();
        Text text = factory.createText();
        button.show1();
        text.show2();
        UnixFactory factory1=new UnixFactory();
        Button button1= factory1.createButton();
        Text text1= factory1.createText();
        button1.show1();
        text1.show2();
        LinuxFactory factory2=new LinuxFactory();
        Button button2= factory2.createButton();
        Text text2= factory2.createText();
        button2.show1();
        text2.show2();

    }
}
